﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WF_AppFuel.Validation.Base;
using WF_AppFuel.Validation.Engines;

namespace WF_AppFuel.Validation.Attributes
{
    /// <summary>
    /// Attribute used for specifying that a property
    /// must be a valid email address.
    /// </summary>
    /// <author>Dennis Q. Pitallano</author>
    public sealed class IsEmail : BaseValidationAttribute
    {
        public IsEmail()
        {
            this.SetValidationMessage("Must Be A Valid Email Address");
        }

        public override Type ValidationEngineType
        {
            get { return typeof(IsEmailValidationEngine); }
        }
    }
}
